package lesson3;

public class Demo2 {
    public static void main(String[] args) {
        Person person1 = new Person("张三",20);
        Person person2 = new Person("张三",20);
        System.out.println(person1.equals(person2));
        Person person3 = person2;
        person2.equals(person3);
        MyClass myClass = new MyClass();
        person1.equals(person2);
        person1.equals(myClass);

        Object obj = new Person();
       // System.out.println(obj instanceof MyClass);
    }
}
